<div class="row-fluid sortable">
	<div class="box span12">
		<div class="box-header well" data-original-title>
			<h2><i class="icon-edit"></i> Edit Hak Akses</h2>
			<div class="box-icon">
				<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
				<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
				<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
			</div>
		</div>
		<div class="box-content">
			<form class="form-horizontal" method='post' action='<?php echo base_url();?>index.php/hak_akses/save/<?php echo $id_lvl;?>'>
			  <p> Hak Akses Menu</p>
			  <fieldset>
				<div class="control-group">
					<?php $x=1; foreach ($data as $value){ ?>
						<div class="controls">
							<label class="checkbox inline">
							<div <?php if($value['checked'] == 1) echo 'class="checker"';?> id="uniform-inlineCheckbox<?php echo $x; ?>">
								<span >
									<input type="checkbox" <?php if($value['checked'] == 1) echo "checked = 'checked' name='checkbox".$x."' value='".$value['id_main']."'";
																 else echo "name='checkbox".$x."' value='".$value['id_main']."'"; ?> id="inlineCheckbox<?php echo $x; ?>" style="opacity: 0;" value="option1" />
								</span>
							</div>
							</label>
							<?php echo $value['nama_menu']?>
						</div>
					<?php $x++; } ?>
				</div>
				<div class="form-actions">
				  <button type="submit" class="btn btn-primary">Save changes</button>
				  <a href='<?php echo base_url();?>index.php/hak_akses' class="btn">Cancel</a>
				</div>
			  </fieldset>
			</form>   
		</div>
	</div><!--/span-->
</div><!--/row-->